package test.com.mit.web.util
{
	import com.mit.web.util.Validator;
	
	import flexunit.framework.Assert;
	
	public class TestValidator
	{		
		[Before]
		public function setUp():void
		{
		}
		
		[After]
		public function tearDown():void
		{
		}
		
		[BeforeClass]
		public static function setUpBeforeClass():void
		{
		}
		
		[AfterClass]
		public static function tearDownAfterClass():void
		{
		}
		
		[Test]
		public function testIsNullOrBlank():void
		{
			var str1:String = null;
			var str2:String = "";
			var str3:String = "   ";
			var str4:String = " A ";
			Assert.assertTrue(Validator.isNullOrBlank(str1));
			Assert.assertTrue(Validator.isNullOrBlank(str2));
			Assert.assertTrue(Validator.isNullOrBlank(str3));
			Assert.assertFalse(Validator.isNullOrBlank(str4));
		}
	}
}